package com.tuanzi.loan.web.lazy.family;

import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import org.springframework.data.domain.Page;

import com.tuanzi.loan.vo.request.family.PayRecordHourStatisticSearchRequest;
import com.tuanzi.loan.vo.response.family.PayRecordHourStatisticSearchResponse;
import com.tuanzi.loan.business.service.family.PayRecordHourStatisticService;

/**
 * 征信入口分时统计 DataModel
 * @author JinRuiyang 2017/12/22 11:19:55
 */
public class PayRecordHourStatisticDataModel extends
        BaseLazyDataModel<PayRecordHourStatisticSearchRequest, PayRecordHourStatisticSearchResponse> {

    private PayRecordHourStatisticService payrecordhourstatisticService = SpringContextHolder.getBean(PayRecordHourStatisticService.class);

    public PayRecordHourStatisticDataModel(PayRecordHourStatisticSearchRequest searchRequest) {
        super(searchRequest);
    }

    @Override
    protected Page<PayRecordHourStatisticSearchResponse> doLoad(PageSearcher<PayRecordHourStatisticSearchRequest> pageSearcher) {
        return payrecordhourstatisticService.list(pageSearcher);
    }
}
